package com.habuma.spitter.mvc;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class Spitter {

    @Size(min = 3, max = 20,
            message = "Username must be between 3 and 20 characters long.")
    @Pattern(regexp = "^[a-zA-Z0-9]+$",
            message = "Username must be alphanumeric with no spaces")
    private String username;


    private String password;

    private String fullName;

    private String email;
}
